package cn.javastudy.design._1_创建者模式._建造者模式;

/**
 * 指挥者类
 *
 * @author sumou
 * @date 2025/01/24
 */
public class Director {

    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Bike construct() {
        builder.buildFrame();
        builder.buildSeat();
        return builder.crateBike();
    }

}
